import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import {HomeComponent} from './home/home.component'
import{HalloComponent} from './hallo/hallo.component'
import{ParentCompComponent} from './parent-comp/parent-comp.component'
import{AntvComponent} from './antv/antv.component'
const routes: Routes = [
  {
    path:'',
    component:HomeComponent
    },
  {
    path:'home',
    component:HomeComponent
  },
  {
    path:'hallo',
    component:HalloComponent
  },
  {
    path:'parent-comp',
    component:ParentCompComponent
  },
  {
    path:'antv',
    component:AntvComponent
  },
  {
    path:'**',
    component:HomeComponent
  }
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
